package com.cyc.basic.util;

import lombok.extern.slf4j.Slf4j;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 * @description:
 * @version 1.0
 * @author cyc
 * @date 2022/3/22 14:37
 */
@Slf4j
public class ReadTxtUtil {
    public static void main(String[] args) {
        try (InputStream inputStream = JobAddressUtil.class.getClassLoader().getResourceAsStream("data/不合格招聘方.txt")) {
            try (InputStreamReader reader = new InputStreamReader(inputStream); BufferedReader bufferedReader = new BufferedReader(reader);) {
                String line;
                while ((line = bufferedReader.readLine()) != null) {

                }
            }
        } catch (IOException e) {
            log.error("解析区失败");
        }
    }
}
